package com.plant.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * PgcTopic entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "pgc_topic", catalog = "mr_plants")
public class PgcTopic implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private String title;
	private String imageUrl;
	private String content;
	private String heat;
	private Integer pv;
	private Timestamp createTime;
	private String ip;

	// Constructors

	/** default constructor */
	public PgcTopic() {
	}

	/** full constructor */
	public PgcTopic(Integer userId, String title, String imageUrl,
			String content, String heat, Integer pv, Timestamp createTime,
			String ip) {
		this.userId = userId;
		this.title = title;
		this.imageUrl = imageUrl;
		this.content = content;
		this.heat = heat;
		this.pv = pv;
		this.createTime = createTime;
		this.ip = ip;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "title", length = 64)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "image_url")
	public String getImageUrl() {
		return this.imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	@Column(name = "content", length = 65535)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "heat", length = 11)
	public String getHeat() {
		return this.heat;
	}

	public void setHeat(String heat) {
		this.heat = heat;
	}

	@Column(name = "pv")
	public Integer getPv() {
		return this.pv;
	}

	public void setPv(Integer pv) {
		this.pv = pv;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "ip", length = 15)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}